package com.bluemobi.framework.pay.wechat.entity;

import java.io.Serializable;

/**
 * 微信网页授权接口调用凭证
 *
 * @author zhangyong
 * @version 1.0
 * @Date 2017/8/17 15:20
 */
public class AccessToken  implements Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = -3653261640493360463L;

	private String access_token;//网页授权接口调用凭证

    private String expires_date;//到期时间

    private String refresh_token;//用户刷新access_token

    private String openid;//用户唯一标识

    private Integer expires_in;//access_token接口调用凭证超时时间，单位（秒）

    private String errcode;

    private String errmsg;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getExpires_date() {
        return expires_date;
    }

    public void setExpires_date(String expires_date) {
        this.expires_date = expires_date;
    }

    public Integer getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Integer expires_in) {
        this.expires_in = expires_in;
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    @Override
    public String toString() {
        return "AccessToken{" +
                "access_token='" + access_token + '\'' +
                ", expires_date='" + expires_date + '\'' +
                ", refresh_token='" + refresh_token + '\'' +
                ", openid='" + openid + '\'' +
                ", expires_in=" + expires_in +
                ", errcode='" + errcode + '\'' +
                ", errmsg='" + errmsg + '\'' +
                '}';
    }
}
